home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-seriously_amiga-
/
programming
/
e
/
amsp4e
/
amsp_example3.e
< prev
next >
Wrap
Text File
|
1999-01-25
|
1KB
|
39 lines
/******************************
*******************************
** ** Used:
** example 3 for AmosBobs.m **
** ** - mGetIBPalette
** Display bobs/icons. ** - mLoadIB
** ** - mEraseIB
** (C) 1999 By Krzys Cmok ** - mPasteQuickIB
** Sun Jan 17 15:19:37 1999 ** - mPasteMaskIB
******************************* - mPasteIB
******************************/
MODULE '*amosbobs', /* open module for amos bobs */
'intuition/screens' /* open module for screens */
PROC main()
DEF databank,s:PTR TO screen /* definition of datas (databank) and screen (s) */
databank:=mLoadIB('willy.abk') /* load .abk file */
s:=OpenS(320,200,4,0,'Example 3');
SetStdRast(s.rastport)
mGetIBPalette(databank,s) /* palette to screen */
/* now, show three types objects */
mPasteQuickIB(s.rastport,databank,30,30,1); TextF(80,40,'1: mPasteQuickIB - instruction');
mPasteMaskIB(s.rastport,databank,30,80,6); TextF(80,90,'6: mPasteMaskIB - instruction');
mPasteIB(s.rastport,databank,30,120,9); TextF(80,130,'9: mPasteIB - instruction');
REPEAT ; UNTIL Mouse()=1
CloseS(s)
mEraseIB(databank) /* clean memory */
ENDPROC